<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/css-buttons.css" type="text/css" />
<link rel="Shortcut icon" type="image/x-icon" href="images/favicon.ico">
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />

<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/slider.js"></script>

<title>..::For What It's Worth::..</title>
</head>

<body>

<div id="header">
<div class="fixed">
<div id="panel" >

<!--FORM LOGIN -->


    <div class="login">
        <?php echo CHtml::link('',array('site/index')) ?>
        </div>
<?php if(Yii::app()->user->isGuest)
       {   ?> 
        <div class="login">
            <form action="index.php?r=site/login" method="post">
                 <input type="text" name="username"  placeholder="Tên Đăng Nhập" required="required"  />   
                 <input type="password" name="password"  placeholder="Mật Khẩu" required="required"  /> <input type="submit" name="login" class="small gray button" value="Đăng Nhập" />
            </form>

        </div> 
 <?php  } else{
         print('<div class="login small gray button" style="margin:10px;"> <span>');
        echo CHtml::link('Logout',array('site/logout'));
        print('</span></div>');
   } 
    ?>
 <div class="clear"></div>     
</div>
<embed src="images/fwiw.swf" quality="high" type="application/x-shockwave-flash" wmode="transparent" width="970" height="160" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always"></embed>
</div>
<div id="mainmenu">
<div class="fixed">
    <img src="images/favicon.ico" style="float: left; margin: 14px 14px;" />
    <ul class="navbar">
   	<?php 
            $this->widget('zii.widgets.CMenu',array(
			 'items'=>array(
                array('label'=>'Trang Chủ', 'url'=>array('/site/index')),
                array('label'=>'Cây Cảnh', 'url'=>array('/tree/index')),
                array('label'=>'Type', 'url'=>array('/treetype/index'),'visible'=>!Yii::app()->user->isGuest),
                array('label'=>'Liên Hệ', 'url'=>array('/site/contact')),
                array('label'=>'Giới Thiệu', 'url'=>array('/site/page','view'=>'about')),
                array('label'=>'Đăng Ký', 'url'=>array('/site/register'), 'visible'=>Yii::app()->user->isGuest),
                //array('label'=>'Thành Viên', 'url'=>array('/userProfiles/index'),'visible'=>!Yii::app()->user->isGuest)
			),
		)); 
        ?>
    </ul>
</div>
</div>
</div><!-- Header -->
<div class="clear"></div>
<div id="content">
<div class="fixed">
<?php echo $content; ?>

</div>
</div><!-- Content -->

<div class="clear"></div>
<div id="footer">
<div class="fixed">
    <div class="span-2 footer-box">
        <div class="footer-box-title border-bottom-footer">Mua Bán Cây Cảnh</div>
        Hoa Mai<br />Cây Bonsai<br />
        
        <div class="footer-box-title border-bottom-footer">Thế Cây</div>
        Thế Tam Đa<br />Thế Trực Quân Tử<br />Thế Trực Quân Tử Liên Chi<br />
    </div>
    <div class="span-2 footer-box">
        <div class="footer-box-title border-bottom-footer">Kiến Thức Cơ Sở</div>
        Lịch sử Penjing trung Quốc<br />Đảm bảo an toàn<br />
        Bồn chậu với Cây cảnh<br />Dáng thế thập toàn cây cảnh cổ<br />
        Kỹ thuật giâm cành cây thân gỗ
    </div>
    <div class="span-2 footer-box">
        <div class="footer-box-title border-bottom-footer">Liên Hệ</div>
        <span>Group : FWIW</span><br />
        Địa chỉ: ĐH Công Nghệ<br />Phone:0988 888 888<br />Fax: 043 888 888<br />
        Email: fwiw@admin.bodd.biz<br />Website: http:\\bodd.biz
    </div>
	<div class="clear"></div>
</div>
<div style="margin: 0px auto;width: 960px; border-top: 2px solid #ffc571;text-align: center;">Copyright © 2011 Web caycanh.org - Design by Mr.Dân (^ ^)</div>
</div><!-- Footer -->
</body>
</html>

